package com.wkb.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PatternUtil {

	public Pattern patternMy = null;
	
	public Matcher matcherMy = null;
	
	public PatternUtil(String regex){
		
		patternMy = Pattern.compile(regex);
	}
	
	public PatternUtil(String regex, CharSequence input){
		
		patternMy = Pattern.compile(regex);
		matcherMy = patternMy.matcher(input);
		
	}
	
}
